<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue测试</title>
</head>
<body>


<div id="app">
    {{ message }}

    <li v-for="item in links" v-bind:item="item">{{item.name}}</li>

    {{adress.city}}
    {{adress.country}}
    {{adress.street}}


</div>


<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>

<script>

    var app = new Vue({
        el: '#app',
        data: {
            message: 'Hello Vue.js!',
            links: [],
            adress: {}
        },
        mounted: function () {
            axios.get('data.json').then((response)=> {
                console.log(response.data);
                this.links = response.data.links
                this.adress = response.data.adress
            })
        }
    })

</script>

</body>
</html>